package org.eliza.base.coroutinesx.flow

import kotlinx.coroutines.flow.asFlow
import kotlinx.coroutines.runBlocking

fun main() = runBlocking<Unit> {
    // Convert an integer range to a flow
    (1..3).asFlow().collect { value -> println(value) }
    arrayOf(1, 2, 3).asFlow().collect { value -> println(value) }
    listOf(1, 2, 3).asFlow().collect { value -> println(value) }
    setOf(1, 2, 3).asFlow().collect { value -> println(value) }
}
